/**
 * 
 */
package com.itboye.allshengmedical.sci.packet.req;


/**
 * @author 贝贝 346551990@qq.com
 * @date   2016-12-8 
 */
public class VersionReqPacket extends BaseReqPacket {

	
	public VersionReqPacket(){
		this.setStart(new byte[]{(byte)0x5A,(byte) 0xA5});
		
		this.setLen((byte)0x04);
		this.setContent(new byte[]{
				(byte)0x0C,(byte)0x01,
				(byte)0x00,(byte)0x00
		});
		
		this.calCheckBit();
		
		this.setEnd(new byte[]{(byte)0x3E,(byte) 0xE3});
	}
	
	public static void main(String[] args) {
		VersionReqPacket packet = new VersionReqPacket();

		System.out.println(packet.toString());
		
		System.out.println(packet.isValidPack());
	}
	
}
